build:
	go-bindata -pkg asset -o resource/asset/tpl.go resource/template/...
	go-bindata -pkg version -o resource/version/version.go version
	go env -w GOOS="windows"
	go build -o bin/win-ctool.exe main.go
	go env -w GOOS="darwin"
	go build -o bin/mac-ctool main.go
	go env -w GOOS="linux"
	go build -o bin/linux-ctool main.go

install:
	go build -o ~/project/go/gopath/bin/ctool

push:
	bin/verinc `cat version` > version
	go-bindata -pkg asset -o resource/asset/tpl.go resource/template/...
	go-bindata -pkg version -o resource/version/version.go version
	go build -o bin/ctool main.go
	git add .
	git commit -m "update"
	git push
	git tag -af `cat version` -m ""
	git push -f --tags